To terminate a mood or emotional state suddenly.
I felt sad that he had left, but I had to snap out of it and get on with my life.